package team.gs.model;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Neverland
 */
public class point {
    public int x;
    public int y;
    public point(int x,int y)
    {
        this.x=x;
        this.y=y;
    }
     public boolean equalPoint(point p1)
    {
        
        if(this.x==p1.x&&this.y==p1.y)
        {
            return true;
        }else
            return false;
    }
    public static boolean comparePoint(point a,point b)
    {
        if((a.x==b.x)&&(a.y==b.y))
        {
            return true;
        }
        return false;
    }
    public void goUp()
    {
        this.x-=1;
        
    }
    public void goDown()
    {
        this.x+=1;
    }
    public void goRight()
    {
        this.y+=1;
    }
    public void goLeft()
    {
        this.y-=1;
    }
}
